package com.sorting;

/**
 * Created by nkrivko on 23.12.2014.
 */
public class Util {

    public static void exchange(char[] s, int i, int j) {
        Character temp = s[i];
        s[i] = s[j];
        s[j] = temp;
    }

    public static void show(char[] s) {
        for (int i = 0; i < s.length; i++) {
            System.out.print(s[i]);
        }
        System.out.println();
    }
}
